package com.itwh.project.common;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Author 翁煌
 * @Date2020/7/5 000517:59
 * @Description: 返回的数据表示形式
 * @Version1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value="返回数据表示")
public class DataGridView {

    @ApiModelProperty(value = "课程id")
    private Integer code=0;
    private String msg="";
    private Long count=0L;
    private Object data;
    public DataGridView(Long count, Object data) {
        super();
        this.count = count;
        this.data = data;
    }
    public DataGridView(String msg,Object data) {
        super();
        this.msg=msg;
        this.data = data;
    }
    public DataGridView(String msg,Long count, Object data) {
        super();
        this.msg=msg;
        this.count = count;
        this.data = data;
    }
}
